Skip to content

Fix SALT annotation loss after Submit#318

Open
Savikhya wants to merge 1 commit intomainfrom
fix/salt-submit-annotation
Open

Fix SALT annotation loss after Submit#318
Savikhya wants to merge 1 commit intomainfrom
fix/salt-submit-annotation

Conversation

@Savikhya
Copy link
Copy Markdown
Collaborator

@Savikhya Savikhya commented Apr 17, 2026

Issue
During client testing, it was observed that SALT annotation (e.g., /*3s) is correctly generated during Grammar Check, but disappears after clicking Submit. As a result, Add Morphemes later treats the word as correct (e.g., /3s), producing incorrect linguistic output.

What was changed
Updated the Submit functionality in audio_menu.py to preserve SALT annotations (e.g., /*3s) when inserting corrected sentences into the Convention Box.

Why it was changed
During client testing, it was observed that SALT annotations like /*3s were correctly generated during Grammar Check but disappeared after clicking Submit. This caused Add Morphemes to treat the word as correct (e.g., /3s), resulting in incorrect linguistic output.

How it was changed
Removed the use of removeErrorCoding() in the applyCorrection() function. Instead of cleaning the sentence, the corrected sentence is now inserted directly into the Convention Box while preserving the original SALT annotations.alities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant